import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {title: '承接任务',
    align:"center",
    dataIndex: 'undertaketasks'},
  {
    title: '工作内容',
    align:"center",
    dataIndex: 'jobcontent'
  },
  {
    title: '完成期限',
    align:"center",
    dataIndex: 'deadlineforcompletion'
  },
  {
    title: '责任部门',
    align:"center",
    dataIndex: 'respondepart_dictText'
  },
  {
    title: '配合部门',
    align:"center",
    dataIndex: 'coopDepart_dictText'
  },
  {
    title: '配合内容',
    align:"center",
    dataIndex: 'coopcontent'
  },
  {
    title: '任务状态',
      align:"center",
    dataIndex: 'taskstatus'
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
];

// 高级查询数据
export const superQuerySchema = {
  undertakeTasks: {title: '承接任务',order: 0,view: 'text', type: 'string',},
  jobcontent: {title: '工作内容',order: 1,view: 'text', type: 'string',},
  deadlineforcompletion: {title: '完成期限',order: 2,view: 'datetime', type: 'string',},
  respondepartment: {title: '责任部门',order: 3,view: 'list', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name',},
  coop_depart: {title: '配合部门',order: 4,view: 'list', type: 'string',dictTable: "sys_depart", dictCode: 'id', dictText: 'depart_name'},
  coopcontent: {title: '配合内容',order: 5,view: 'text', type: 'string',},
  taskstatus: {title: '任务状态',order: 6,view: 'text', type: 'string',},
};

/**
 * 流程表单调用这个方法获取formSchema
 * @param param
 */
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据，这里需要单独处理formSchema
  return formSchema;
}
